package com.example.chcrm.entity.consignor;

import com.baomidou.mybatisplus.annotation.*;
import com.example.chcrm.entity.common.OperateRecord;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author 邹
 * @Date 2025/4/20 15:42
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CustomerCarModel implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;
    @NotBlank(message = "品牌不能为空")
    private String brandId;        //品牌id
    @Excel(name = "品牌名称", width = 20)
    private String brandName;    //品牌名称
    @NotBlank(message = "型号名称不能为空")
    @Excel(name = "型号名称", width = 20)
    private String model;        //型号名称
    @NotBlank(message = "配置名称不能为空")
    @Excel(name = "配置", width = 20)
    private String config;        //配置
    @NotNull(message = "重量不能为空")
    @Excel(name = "重量", width = 20)
    private Double weight;        //重量（t）
    @NotNull(message = "长不能为空")
    private Double length;        //长度（米）
    @NotNull(message = "宽不能为空")
    private Double width;        //宽度（米）
    @NotNull(message = "高不能为空")
    private Double height;        //高度（米）
    private Integer status;        //状态 1启用，0停用

    private Integer isNewEnergy;//是否新能源0否1是

    @TableField("is_deleted")
    @TableLogic(value = "0", delval = "-1")
    private Integer isDeleted;   //是否删除
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;    //添加时间
    @Excel(name = "是否新能源",width = 20)
    @TableField(exist = false)
    private String isNewEnergyExoprt;
    //----分页----
    @TableField(exist = false)
    private Integer page = 1;
    @TableField(exist = false)
    private Integer rows = 10;
    @TableField(exist = false)
    private List<OperateRecord> operateRecordList;


    @Excel(name = "状态", width = 10)
    @TableField(exist = false)
    private String statusType;
    @Excel(name = "长宽高", width = 20)
    @TableField(exist = false)
    private String ckgSplicing;
    @TableField(exist = false)
    private String uu;
}
